package demo8;

public class Person implements Cloneable{
    public Money m=new Money();

    @Override
    public Person clone() throws CloneNotSupportedException {
        Person p = (Person) super.clone();
        p.m = p.m.clone();
        return p;
    }
}
